/**
 * 保存或提交成功控制器
 */
export default ['$scope','$rootScope','$location','$ui','$state',function($scope,$rootScope,$location,$ui,$state) {
    // 传过来的数据
    $scope.searchData = $location.search()
    $scope.loanState = $location.search().state //借款类型(1.车贷 2房贷 3信贷)
    $scope.opearState = $location.search().opear
    $scope.msg = JSON.parse($location.search().msg)

    //返回订单 刷新页面
    $scope.backOrderList = function(){
        $state.go('application.intoa',{},{reload:true})
    }
    //返回编辑订单 刷新页面
    $scope.backEditOrder = function(){
        $state.go('application.orderentry',$scope.searchData,{reload:true})
    }
}]
